import Layout from '@/layout'

const supplierRouter = {
  path: '/supplier',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'Supplier',
  meta: {
    title: '供应商',
    roles: ['supplier', 'admin']
  },
  children: [
    {
      path: 'inventory',
      component: () => import('@/views/supplier/inventory-list'),
      name: 'SupplierInventory',
      meta: { title: '上传库存', noCache: false }
    },
    {
      path: 'inventory/:id(\\d+)/edit',
      component: () => import('@/views/supplier/inventory-edit'),
      name: 'SupplierInventoryEdit',
      meta: { title: '库存编辑', noCache: false },
      hidden: true
    },
    {
      path: '',
      // component: () => import('@/views/supplier/'),
      name: '',
      meta: { title: '下载订单(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/supplier/'),
      name: '',
      meta: { title: '上传反馈单号(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/supplier/'),
      name: '',
      meta: { title: '订单汇总(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/supplier/'),
      name: '',
      meta: { title: '结算单(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/supplier/'),
      name: '',
      meta: { title: '三方沟通(TBD)', noCache: false }
    }
  ]
}

export default supplierRouter
